//
//  SecondVC.m
//  网络图片浏览器
//
//  Created by 张钧 on 2017/5/4.
//  Copyright © 2017年 JinYun. All rights reserved.
//

#import "SecondVC.h"
#import <UIImageView+WebCache.h>
@interface SecondVC ()

@end

@implementation SecondVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor=[UIColor blueColor];
    self.title=_model.title;
    //请求图片
    UIImageView * image=[[UIImageView alloc]initWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 400)];
    [image sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@", _model.url]] placeholderImage:[UIImage imageNamed:@"IMG_0158.JPG"]];
    [self.view addSubview:image];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
